home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1999 Spring / macformat-077.iso / Shareware Plus / System Add-ons / Control Commander fat / Control Commander Fat / Control Commander Fat.rsrc / TEXT_132.txt < prev    next >
Encoding:
Text File  |  1999-03-21  |  6.3 KB  |  71 lines

  1. Introduction to Control Panel Descriptions:
  2.     If you want to make changes to the Control Panel descriptions that come with Control Commander, or write your own, you'll need to know a bit about the structure of Control Commander documents.
  3.     To see how a typical document is organized, choose "Get Copy of Commands File" from the Edit menu.  The figure below shows a part of that document:
  4. ---------------------------------------
  5. Sounds    -24
  6. Text    -27
  7. Time    -28
  8.     Appearance    -1
  9. * ¬© Apple Computer Inc.
  10. Double-click title bar to collapse windows    -26
  11. Highlight Color    -27    -4    -3
  12. Play sound when collapsing windows    -24    -26
  13.     Apple Menu Options    -1
  14. * ¬© Apple Computer Inc.
  15. Remember recently used items    -8    -16    -26
  16. Submenus On/Off    -16    -3    -26
  17. ---------------------------------------
  18. Keywords and reference numbers are in Green.
  19. Control Panel names are in Bold Blue.
  20. Comments are in Purple.
  21. Lines describing the functions of a Control Panel are in Black.
  22. ---------------------------------------
  23.     The pieces of the document are color coded to show what they are.  The document starts with a list of keywords; each followed by at least one reference number.  The keywords are what show up in the keywords Popup Menu in the Commands list window.  The reference numbers are used to tie the keywords to Control Panel functions.  e.g. the reference number for "Sounds", (-24) also appears on the line "Play sound when collapsing windows" so that when you choose Sounds from the Popup Menu, the line "Play sound when collapsing windows" will show up in the Commands list.  Everything from the start of the document to the first line that starts with a tab is treated as a keyword.  Everything after that tab character describes Control Panels.  Each Control Panel description starts with a tab and the name of the Control Panel, followed by any number of lines describing the Control Panel.  These lines are what appear in the Commands list.  To connect them to a particular keyword, simply put a tab at the end of the line and type in the keywords reference number.  Comment lines offer a convenient place to put things that you don't want to show up in the commands list.  They start with an asterisk, and must immediately follow the name of a Control Panel.
  24. ••••••••••••••••••••••••••••••••••••••
  25. Changing a Control Panel Description:
  26.  
  27. ‚Ä¢ Open the document you want to change.  If you can't find one choose "Get Copy of Commands File" from the Edit Menu.
  28. ‚Ä¢ Click on the Check Syntax button so it's easy to see what's what in the document.
  29. ‚Ä¢ Change the Keywords and description lines any way you want.  [There are a few rules, but nothing you should normally run up against].  Don't mess with the names of the Control Panels unless you are sure what you are doing. [Their lines all start with a tab].
  30. ‚Ä¢ Add any Keywords or references you want to the document.  [Reference numbers are tab separated].
  31. ‚Ä¢ When you're done Click on the Check Syntax button again to see if there are any problems.
  32. ‚Ä¢ Use the Text Utilities dialog, by clicking on the Tools button, to fix any problems and (optionally) to alphabetize things.  You can see what things will look like by choosing "Preview" from the Edit Menu.
  33. ‚Ä¢ When you are satisfied, check the Syntax one more time.
  34. ‚Ä¢ Save your file.
  35. ‚Ä¢ Choose "Add Text to Commands File", or "Add Descriptions" if you've closed the document.
  36. ‚Ä¢ That's it.
  37.  
  38.     If you run into any problems, look at the section of the manual entitled "Checking Your Work".  If that's not enough, read the section "Writing a Control Panel Description File" for all the technical details...
  39. ••••••••••••••••••••••••••••••••••••••
  40. Making New Keywords:
  41.  
  42. ‚Ä¢ Pick a descriptive name for the keyword
  43. ‚Ä¢ Choose "Get Copy of Commands File" from the Edit Menu, or use some other document.
  44. ‚Ä¢ Click on the Tools button to find out what the lowest unused reference number is.
  45. ‚Ä¢ Type in the name for your keyword on the top line, followed by a tab, and the reference number you just found.
  46. ‚Ä¢ Look through the text of the document and find the lines that you want your keyword to display.  Type in a tab and the reference number on those lines.
  47. ‚Ä¢ If you notice that a Standard Reference number covers most of the choices you've made, you can add that reference number to your keyword.  That way it'll automatically select all the right stuff.
  48. ‚Ä¢ When you're done, click the check syntax button to check for mistakes.
  49. ‚Ä¢ Fix any problems.
  50. ‚Ä¢ Choose "Add Text to Commands File" from the File Menu.
  51. ‚Ä¢ That's all.  Your new keyword will act just like any other keyword.
  52. ••••••••••••••••••••••••••••••••••••••
  53. Creating and Using Settings Documents:
  54.  
  55. Here's how to make one:
  56. ‚Ä¢ Open Control Commander, and choose "Get Control Panel Names" from the Edit Menu.  A document will open that will show you the names of all the Control Panels on the Computer.
  57. ‚Ä¢ Go through the process of setting up the computer the way you want it, but as you set each Control Panel, type a description of what you did underneath the name of that Control Panel in the Control Commander document.
  58. ‚Ä¢ When you are done, remove all the names for Control Panels you didn't use from the document.
  59. ‚Ä¢ If you want, you can use the Tools dialog to alphabetize things, etc.
  60. ‚Ä¢ Click on the Check Syntax button to make sure there aren't any problems.
  61. ‚Ä¢ Save the document with a descriptive name like: "Set up for MyMac"
  62. ‚Ä¢ Choose "Preview" from the Edit Menu.
  63. ‚Ä¢ The Commands List will now show you the complete setup procedure.  And, you can just click on it to get to the right Control Panels !
  64.  
  65.     If you need to set the Chooser or any other items, you can type that in too.  You can either put them in under one of the Control Panels, or put them in by themselves.  To put them in by themselves:
  66. ‚Ä¢ On a new line, type a tab, followed by a short description of what the text is.
  67. ‚Ä¢ On succeeding lines, type in a list of all the non-control panel settings that need to be changed.
  68. ‚Ä¢ That's it.
  69.  
  70. Using a document:
  71.     You can either open the document and choose "Preview" from the Edit Menu, or you can hold down the option and ‚åò keys while opening the document from the Finder.  Either way the text of the document will be used for the commands list.